package ui;

import barbershop.BarberShopConcrete;
import barbershop.Client;


public class barbershopui {
	
	public static void main(String[] args){
		BarberShopConcrete b = new BarberShopConcrete(5);
		System.out.println("Barber is " + (b.barberWorking()?"shaving" : "sleeping"));
		b.clientArrives(new Client(10,"Teresa"));
		b.clientArrives(new Client(10,"Teresa2"));
		b.clientArrives(new Client(10,"Teresa3"));
		while (b.getQueueLength()!=0) {
			b.runSingleStep();
		}
		b.clientArrives(new Client(2,"Teobaldo"));
		while (b.getQueueLength()!=0) {
			b.runSingleStep();
		}
	}
	
}
